﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfConsultar.aspx.cs" Inherits="Pulsar.ClienteWeb.wfConsultar" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 800px;
        }
        .style2
        {
            width: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table align="center" class="style1">
            <tr>
                <td bgcolor="#0066FF" height="200">
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <table class="style2">
                        <tr>
                            <td>
                                <table style="width: 458px">
                                    <tr>
                                        <th align="center" class="style1" colspan="4">
                                            Consultar Itinerarios Optimos<br />
                                        </th>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label1" runat="server" Font-Size="X-Small" Text="Origen: " 
                                                Width="50px"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtOrigen" runat="server" Width="100px"></asp:TextBox>
                                            <br />
                                        </td>
                                        <td>
                                            &nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label2" runat="server" Font-Size="X-Small" 
                                                Text="Destino:   " Width="50px"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtDestino" runat="server" Width="100px"></asp:TextBox>
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label6" runat="server" Font-Size="X-Small" Text="Partida: " 
                                                Width="50px"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtFecIni" runat="server" Width="100px"></asp:TextBox>
                                            <br />
                                        </td>
                                        <td>
                                            &nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label7" runat="server" Font-Size="X-Small" 
                                                Text="Regreso:   " Width="50px"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtFecFin" runat="server" Width="100px"></asp:TextBox>
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label8" runat="server" Font-Size="X-Small" Text="Boletos: " 
                                                Width="50px"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtBoletos" runat="server" Width="100px"></asp:TextBox>
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <div align="center">
                                                <asp:Button ID="cmdBuscar" runat="server" onclick="cmdIngresar_Click" 
                                                    Text="Buscar" />
                                                <br />
                                                <br />
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td width="50%">
                                &nbsp;</td>
                        </tr>
                    </table>
                    <asp:GridView ID="gvLista" runat="server" Width="100%" 
                        AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
                        GridLines="None" onrowediting="gvLista_RowEditing" 
                        onselectedindexchanged="gvLista_SelectedIndexChanged">
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:TemplateField HeaderText="Codigo">
                                <ItemTemplate>
                                    <asp:Label ID="lblIdProgramacion" runat="server" 
                                        Text='<%# Bind("idProgramacion") %>' Width="1px"></asp:Label>
                                </ItemTemplate>
                                <ControlStyle Width="1px" />
                                <FooterStyle Width="1px" />
                                <HeaderStyle Width="1px" />
                                <ItemStyle Width="1px" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="origen" HeaderText="Origen" />
                            <asp:BoundField DataField="destino" HeaderText="Destino" />
                            <asp:BoundField DataField="fecha" DataFormatString="{0:d MMMM, yyyy}" 
                                HeaderText="Fecha Programada" />
                            <asp:BoundField DataField="precio" HeaderText="Precio" />
                            <asp:BoundField DataField="stock" HeaderText="Stock" />

                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:Image ID="Image2" runat="server" Height="25px" 
                                        ImageUrl="~/Images/buy.png" />
                                    <asp:LinkButton ID="lbeditar" runat="server" OnCommand="Editar" 
                                    CommandName='<%# DataBinder.Eval(Container.DataItem,"idProgramacion")%>'>Reservar</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>

                        </Columns>
                        <EditRowStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                    </asp:GridView>
                    <asp:Label ID="Label9" runat="server" Visible="False"></asp:Label>
                    <br />
                </td>
            </tr>
            <tr>
                <td bgcolor="#003399" height="100">
                    &nbsp;</td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
